﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Util.Json
{
    public class DirectionsResponse
    {
        public string status { get; set; }
        public routes[] routes { get; set; }

    }

    public class routes
    {
        public string summary { get; set; }
        public legs[] legs { get; set; }
        public string copyrights { get; set; }
        public overview_polyline overview_polyline { get; set; }
        public warnings[] warnings { get; set; }
        public waypoint_order[] waypoint_order { get; set; }
        public bounds bounds { get; set; }
    }

    public class bounds
    {
        public southwest southwest { get; set; }
        public northeast northeast { get; set; }
    }

    public class southwest
    {
        public double lat { get; set; }
        public double lng { get; set; }
    }

    public class northeast
    {
        public double lat { get; set; }
        public double lng { get; set; }
    }

    public class overview_polyline
    {
        public string points { get; set; }
        public string levels { get; set; }
    }

    public class waypoint_order
    {

    }

    public class warnings
    {

    }

    public class legs
    {
        public steps[] steps { get; set; }
        public duration duration { get; set; }
        public distance distance { get; set; }
        public start_location start_location { get; set; }
        public end_location end_location { get; set; }
        public string start_address { get; set; }
        public string end_address { get; set; }
        public via_waypoint[] via_waypoint { get; set; }
    }

    public class steps
    {
        public string travel_mode { get; set; }
        public start_location start_location { get; set; }
        public end_location end_location { get; set; }
        public polyline polyline { get; set; }
        public duration duration { get; set; }
        public string html_instructions { get; set; }
        public distance distance { get; set; }
    }

    public class via_waypoint
    {
    }

    public class start_location
    {
        public double lat { get; set; }
        public double lng { get; set; }
    }

    public class end_location
    {
        public double lat { get; set; }
        public double lng { get; set; }
    }

    public class polyline
    {
        public string points { get; set; }
        public string levels { get; set; }
    }

    public class duration
    {
        public int value { get; set; }
        public string text { get; set; }
    }

    public class distance
    {
        public int value { get; set; }
        public string text { get; set; }
    }



}
